<div class="title_box">User Details</div>
<div class="border_box">
<?php echo 'Welcome '.$user->first_name.' '.$user->last_name;?>
<br>
<?php echo 'Username: '.$user->username;?>
<br>
<?php echo Html::anchor('user/profile', 'My Account');?>
<?php echo ' ';?>
<?php echo Html::anchor('user/logout', 'Logout');?>
<br>
<?php if($user->has('roles', ORM::factory('role', 2))):?>
<?php echo Html::anchor('admin', 'Admin Control Panel');?>
<?php endif;?>
</div>